/*
 * XML Type:  IntraTransactionRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.IntraTransactionRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML IntraTransactionRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class IntraTransactionRequestImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionRequestImpl implements net.ofx.types.x2003.x04.IntraTransactionRequest
{
    
    public IntraTransactionRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INTRARQ$0 = 
        new javax.xml.namespace.QName("", "INTRARQ");
    private static final javax.xml.namespace.QName INTRAMODRQ$2 = 
        new javax.xml.namespace.QName("", "INTRAMODRQ");
    private static final javax.xml.namespace.QName INTRACANRQ$4 = 
        new javax.xml.namespace.QName("", "INTRACANRQ");
    
    
    /**
     * Gets the "INTRARQ" element
     */
    public net.ofx.types.x2003.x04.IntraRequest getINTRARQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraRequest target = null;
            target = (net.ofx.types.x2003.x04.IntraRequest)get_store().find_element_user(INTRARQ$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INTRARQ" element
     */
    public boolean isSetINTRARQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTRARQ$0) != 0;
        }
    }
    
    /**
     * Sets the "INTRARQ" element
     */
    public void setINTRARQ(net.ofx.types.x2003.x04.IntraRequest intrarq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraRequest target = null;
            target = (net.ofx.types.x2003.x04.IntraRequest)get_store().find_element_user(INTRARQ$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IntraRequest)get_store().add_element_user(INTRARQ$0);
            }
            target.set(intrarq);
        }
    }
    
    /**
     * Appends and returns a new empty "INTRARQ" element
     */
    public net.ofx.types.x2003.x04.IntraRequest addNewINTRARQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraRequest target = null;
            target = (net.ofx.types.x2003.x04.IntraRequest)get_store().add_element_user(INTRARQ$0);
            return target;
        }
    }
    
    /**
     * Unsets the "INTRARQ" element
     */
    public void unsetINTRARQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTRARQ$0, 0);
        }
    }
    
    /**
     * Gets the "INTRAMODRQ" element
     */
    public net.ofx.types.x2003.x04.IntraModRequest getINTRAMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraModRequest target = null;
            target = (net.ofx.types.x2003.x04.IntraModRequest)get_store().find_element_user(INTRAMODRQ$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INTRAMODRQ" element
     */
    public boolean isSetINTRAMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTRAMODRQ$2) != 0;
        }
    }
    
    /**
     * Sets the "INTRAMODRQ" element
     */
    public void setINTRAMODRQ(net.ofx.types.x2003.x04.IntraModRequest intramodrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraModRequest target = null;
            target = (net.ofx.types.x2003.x04.IntraModRequest)get_store().find_element_user(INTRAMODRQ$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IntraModRequest)get_store().add_element_user(INTRAMODRQ$2);
            }
            target.set(intramodrq);
        }
    }
    
    /**
     * Appends and returns a new empty "INTRAMODRQ" element
     */
    public net.ofx.types.x2003.x04.IntraModRequest addNewINTRAMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraModRequest target = null;
            target = (net.ofx.types.x2003.x04.IntraModRequest)get_store().add_element_user(INTRAMODRQ$2);
            return target;
        }
    }
    
    /**
     * Unsets the "INTRAMODRQ" element
     */
    public void unsetINTRAMODRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTRAMODRQ$2, 0);
        }
    }
    
    /**
     * Gets the "INTRACANRQ" element
     */
    public net.ofx.types.x2003.x04.IntraCancellationRequest getINTRACANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraCancellationRequest target = null;
            target = (net.ofx.types.x2003.x04.IntraCancellationRequest)get_store().find_element_user(INTRACANRQ$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "INTRACANRQ" element
     */
    public boolean isSetINTRACANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTRACANRQ$4) != 0;
        }
    }
    
    /**
     * Sets the "INTRACANRQ" element
     */
    public void setINTRACANRQ(net.ofx.types.x2003.x04.IntraCancellationRequest intracanrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraCancellationRequest target = null;
            target = (net.ofx.types.x2003.x04.IntraCancellationRequest)get_store().find_element_user(INTRACANRQ$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IntraCancellationRequest)get_store().add_element_user(INTRACANRQ$4);
            }
            target.set(intracanrq);
        }
    }
    
    /**
     * Appends and returns a new empty "INTRACANRQ" element
     */
    public net.ofx.types.x2003.x04.IntraCancellationRequest addNewINTRACANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IntraCancellationRequest target = null;
            target = (net.ofx.types.x2003.x04.IntraCancellationRequest)get_store().add_element_user(INTRACANRQ$4);
            return target;
        }
    }
    
    /**
     * Unsets the "INTRACANRQ" element
     */
    public void unsetINTRACANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTRACANRQ$4, 0);
        }
    }
}
